package com.ruoyi;

import com.ruoyi.cache.redis.util.RedisUtils;
import com.ruoyi.keno.enums.AreaEnums;
import com.ruoyi.keno.service.IKenoHistoryService;
import com.ruoyi.keno.service.impl.KenoHistoryServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = { RuoYiApplication.class }) // 指定启动类
public class TaskService {
    @Autowired
    IKenoHistoryService kenoHistoryService;

    @Test
 //   @Cacheable(value = "ceshi", key = "'user:111'", unless = "111")
    public void testOne() {

  //      redisTemplate.opsForValue().set("user:111",1111);

//        for (AreaEnums areaEnums : AreaEnums.values()) {
//            kenoHistoryService.getDataAcquisition(areaEnums.getCityCode());
//        }
    }

}

